package Cantella::DJabberd::Web::UI::Widget::Value::RelatedObject::Linked;

use Reaction::UI::WidgetClass;

class Linked is 'Reaction::UI::Widget::Value', which {

  implements fragment value_fragment {
    if( $_{viewport}->has_link ){
      arg '_' => $_{viewport}->link;
      render 'viewport';
    } else {
      render 'field_value';
    }
  };

};

1;
